package ModelImplementation

import "PaySalary/Model"

type DirectMethod struct {
	itsBank string
	itsAccount string
}

func directMethod(bank string,account string) DirectMethod {
	return DirectMethod{itsAccount: account,itsBank: bank}
}

func (dm* DirectMethod)GetBank() string {
	return dm.itsBank
}

func (dm* DirectMethod)GetAccount() string{
	return dm.itsAccount
}

func MPay(paycheck Model.Paycheck) {
	paycheck.SetField("Disposition","Direct")
}